package com.ht;

import com.ht.dao.UserDaoMySqlImpl;
import com.ht.service.UserService;
import com.ht.service.UserServiceImpl;
import com.ht.service.UserServiceImpl2;
import org.junit.Test;

public class Mytest {
    @Test
    public  void test(){
        UserService u=new UserServiceImpl2();
        ((UserServiceImpl2)u).setUserDao(new UserDaoMySqlImpl());
        u.getUser();
    }
}
